home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / RCS / stddef.h,v < prev    next >
Encoding:
Text File  |  1990-10-19  |  1.8 KB  |  117 lines

  1. head     1.4;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.4
  10. date     90.10.19.15.41.25;  author shirriff;  state Exp;
  11. branches ;
  12. next     1.3;
  13.  
  14. 1.3
  15. date     89.06.19.12.26.57;  author rab;  state Exp;
  16. branches ;
  17. next     1.2;
  18.  
  19. 1.2
  20. date     89.03.30.09.38.43;  author rab;  state Exp;
  21. branches ;
  22. next     1.1;
  23.  
  24. 1.1
  25. date     89.02.07.14.02.01;  author rab;  state Exp;
  26. branches ;
  27. next     ;
  28.  
  29.  
  30. desc
  31. @@
  32.  
  33.  
  34. 1.4
  35. log
  36. @Added necessary declaration.
  37. @
  38. text
  39. @/*
  40.  * stddef.h --
  41.  *
  42.  *    Declarations of standard types.
  43.  *
  44.  * Copyright 1989 Regents of the University of California
  45.  * Permission to use, copy, modify, and distribute this
  46.  * software and its documentation for any purpose and without
  47.  * fee is hereby granted, provided that the above copyright
  48.  * notice appear in all copies.  The University of California
  49.  * makes no representations about the suitability of this
  50.  * software for any purpose.  It is provided "as is" without
  51.  * express or implied warranty.
  52.  *
  53.  * $Header: /sprite/src/lib/include/RCS/stddef.h,v 1.3 89/06/19 12:26:57 rab Exp Locker: shirriff $
  54.  */
  55.  
  56. #ifndef _STDDEF
  57. #define _STDDEF
  58.  
  59. typedef int ptrdiff_t;
  60. typedef short wchar_t;
  61.  
  62. #ifndef _SIZE_T
  63. #define _SIZE_T
  64. typedef int size_t;
  65. #endif
  66.  
  67. #ifndef NULL
  68. #define    NULL        0
  69. #endif
  70.  
  71. #define offsetof(structtype, field) \
  72.     ((size_t)(char *)&(((structtype *)0)->field))
  73.  
  74. #endif /* _STDDEF */
  75.  
  76. @
  77.  
  78.  
  79. 1.3
  80. log
  81. @*** empty log message ***
  82. @
  83. text
  84. @d15 1
  85. a15 1
  86.  * $Header: /sprite/src/lib/include/RCS/stddef.h,v 1.2 89/03/30 09:38:43 rab Exp Locker: rab $
  87. d27 4
  88. @
  89.  
  90.  
  91. 1.2
  92. log
  93. @*** empty log message ***
  94. @
  95. text
  96. @d15 1
  97. a15 1
  98.  * $Header: /sprite/src/lib/include/RCS/stddef.h,v 1.1 89/02/07 14:02:01 rab Exp Locker: rab $
  99. d22 2
  100. @
  101.  
  102.  
  103. 1.1
  104. log
  105. @Initial revision
  106. @
  107. text
  108. @d15 1
  109. a15 1
  110.  * $Header$
  111. d22 2
  112. a23 2
  113. #ifndef SIZE_T
  114. #define SIZE_T
  115. d26 3
  116. @
  117.